package com.tiantian.springintejms.listener;

import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

@Repository
public class TestDaoImpl implements TestDao {
	private JdbcTemplate jdbcTemplate;

	@Transactional(readOnly=false)  
	public void insert(final String name) {  
	      
	    jdbcTemplate.update("insert into test(name) values(?)", name);  
	  
	}  
}
